package com.dongdongqiang.admin.service;

import com.dongdongqiang.admin.dao.SysRoleMapper;
import com.dongdongqiang.common.base.BaseService;
import com.dongdongqiang.common.query.GenericQueryDAO;
import com.dongdongqiang.domain.sys.SysRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ZZB on 2017/9/18.
 */
@Service
public class SysRoleService extends BaseService<SysRole> {
    @Autowired
    private SysRoleMapper sysRoleMapper;
    public List<SysRole> queryByUserId(String userId){
        return sysRoleMapper.queryByUserId(userId);
    }
}
